package com.zxn.xiaoran.model.api;


import com.zxn.xiaoran.model.bean.CheckInfo;
import com.zxn.xiaoran.model.bean.XMInfo;

import io.reactivex.Observable;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

/**
 * Created by zxn on 2019/5/8.
 */
public interface IXMApi {
    //https://www.pgyer.com/apiv2/app/view
    //01f43f783df1040982840643d1b3e46c
    //_api_key
    //appKey
    //buildKey

    /**
     * 获取App详细信息.
     * @param _api_key
     * @param appKey
     * @return
     */
    @FormUrlEncoded
    @POST("apiv2/app/view")
    Observable<XMInfo> appView(@Field("_api_key") String _api_key, @Field("appKey") String appKey);


    /**
     * 获取App详细信息.
     * @param _api_key
     * @param appKey
     * @return
     */
    @FormUrlEncoded
    @POST("apiv2/app/check")
    Observable<CheckInfo> appCheck(@Field("_api_key") String _api_key, @Field("appKey") String appKey);

}
